package com.lj.demo.eduservice.controller;

import com.lj.demo.commonutils.R;
import org.springframework.web.bind.annotation.*;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: liujiang
 * @Date: 2020/11/23/21:05
 * @Description:
 */
@RestController
@RequestMapping("/eduservice/user")
//@CrossOrigin
public class EduLoginController {
    //login
    @PostMapping("login")
    public R login(){
        return R.ok().data("token","admin");
    }

    //info
    @GetMapping("info")
    public R info(){
        return R.ok().data("roles","[admin]").data("name","admin").data("avatar","https://edu-ljj1002.oss-cn-beijing.aliyuncs.com/2020/11/29/7c656bca-ffa6-477b-bf99-7de642b48b50ljj.png");

    }

}
